import request from '@/utils/request'
export default {
    getorderRobList: () => request.get('/getserveorderroblist'),
    getHandleList: () => request.get('/getserveorderHandellist'),
    getHistoryList: (data: any) => request.get('/gethistoryorderlist', { params: data }),
    accpectOrder: (data: any) => request.post('/argeeorderstatus', data),
    refuseOrder: (data: any) => request.post('/refuseorderstatus', data),
    confirmOrder: (data: any) => request.post('/finshserveorder', data),
    getOneLeaveList: () => request.post('/getoneleave'),
    workerLeave: (data: any) => request.post('/workmenleave', data),
    getWorkerPost: (data: any) => request.get('/getworkpost', { params: data }),
    addWorkerShare: (data: any) => request.post('/addShare', data),
    getOneShare: (data: any) => request.post('/getOneShare', data),
    updateShare: (data: any) => request.post('/updateworkpost', data),
    delShare: (data: any) => request.post('/delshare', data),
    getProvince: () => request.get('/province'),
    getCity: (data: any) => request.get('/city', { params: data }),
    getTown: (data: any) => request.get('/town', { params: data }),
    updateWorkerMsg: (data: any) => request.post('/updateworkermsg', data)
}